package com.example.xm.mapper;

import com.example.xm.Entity.Mail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MailMapper {
    /**获取*/
    public List<Mail> getMail(Mail mail);

    /**添加*/
    public int Add(Mail mail);

    /**分页*/
    public List<Mail> selectPager();

    /**删除*/
    public int del(String id);


    /**根据id获取学生对象*/
    public Mail getMailId(String qq);
    /**修改*/
    public int Update(Mail mail);
}
